본문으로 건너뛰기

점근 표기법

알고리즘계산복잡도 설명에 사용하는 표기법. f(n)=O(n2) 꼴로 쓴다.

On notation

Θ(g(n)) is a set:

Because Θ(g(n)) is a set, we could write " f(n)Θ(g(n))" to indicate that f(n) is a member of Θ(g(n)). Instead, we will usually write " f(n)=Θ(g(n))" to express the same notion.1

Minor abusing:

Since any constant is a degree-0 polynomial, we can express any constant function as Θ(n0), or Θ(1). This latter notation is a minor abuse, however, becuase the expression doesn not indicate what variable is tending to infinity. We shall often use the notation Θ(1) to mean either a constant or a constant function with respect to some variable.

(The real problem is that our ordinary notation for functions does not distinguish functions from values. in Lambda calculus, the parameters to a function are clealy specified: the function n2 could be written as λn.n2, or even λr.r2. Adopting a more rigorous notation, howevery, would complicate algebraic manipulations, and so we choose to tolerate the abuse.)1

Θ-notation (Big Theta notation)

정의:1

For a given function g(n),wedenoteby\Theta(g(n))$ the set of functions.

Θ(g(n)) = { f(n) such that there exist positive constants c1, c2, and n0 such that 0c1g(n)f(n)c2g(n) for all nn0 .

설명:1

A function f(n) belongs to the set Θ(g(n)) if there exist positive constants c1 and c2 such that it can be “sandwiched” between c1g(n) and c2g(n), for sufficiently large n. … In other words, for all nn0, the function f(n) is equal to g(n) to within a constant factor. We say that g(n) is an asymptotically tight bound for f(n).

Ω-notation (Big Omega notation)

O-notation (Big O notation)

Footnotes

  1. Chapter 3, Introduction to algorithms 2 3 4

작성
수정

2026 © ak | markdown